package com.hou.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.xml.crypto.KeySelector;
import java.security.PublicKey;

/**
 * @author shkstart
 * @create 2021-11-06-19:36
 */
@Component
public class ConstantUtils implements InitializingBean {

    @Value("${aliyun.oss.file.keyid}")
    private String KeyId;

    @Value("${aliyun.oss.file.keysecret}")
    private String KeySecret;

    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;


    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = KeyId;
        ACCESS_KEY_SECRET = KeySecret;
    }
}
